
/**
 * Copyright 2017 Yonyou Corporation Ltd. All Rights Reserved.
 * This software is published under the terms of the Yonyou Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 *
 * @Project Name : dmscloud.manage
 * @File name : PermissionCtrlService.java
 * @Author : yll
 * @Date : 2017年4月5日
 * <p>
 * ----------------------------------------------------------------------------------
 * Date       Who       Version     Comments
 * 1. 2017年4月5日    yll    1.0
 * <p>
 * <p>
 * <p>
 * <p>
 * ----------------------------------------------------------------------------------
 */

package com.yonyou.cyxdms.sysAuth.service.service.permission;

import com.yonyou.cyx.function.exception.ServiceBizException;
import com.yonyou.cyxdms.sysAuth.service.dto.CodeDTO;

import java.util.List;
import java.util.Map;

/**
 * 受控权限service
 *
 * @author adu
 * @date 2019年9月21日
 */

public interface PermissionCtrlService {
    public Integer addPermissionCtrl(Integer permissionType, String permissionid, String ctrlCode, Integer type) throws ServiceBizException;

    public void editPermissionCtrl(Integer permissionType, String permissionID, String ctrlCode, Integer type) throws ServiceBizException;

    public void deleteMenuByPermissionId(Integer permissionType, String permissionID) throws ServiceBizException;

    public Map<String, String> queryMenuCtrl(Integer permissionType, String id);

    public List<CodeDTO> accessoriesRemoteUrl(Integer permissionType, String id);

    public List<CodeDTO>  maintainRemoteUrl(Integer permissionType, String id);

    public void deleteMenuByPermissionId(Integer permissionType, String permissionID, Integer type) throws ServiceBizException;

}
